﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace BusinessLogic.Command
{
    public class GetPersonalInfoListCommand : BaseCommand<List<APP_PERSONAL>>
    {
        public override void Command()
        {
            CubeOfDB2Entities ctx = new CubeOfDB2Entities();
            ctx.ContextOptions.ProxyCreationEnabled = false;

            Result = ctx.APP_PERSONAL.ToList();

            ctx.ContextOptions.ProxyCreationEnabled = true;
        }
    }
}